package com.acoffee.java1;

import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author acoffee
 * @create 2021-11-16 15:37
 */
public class AnnoTest {

    @Test
    public void test(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        CookieService cookService = context.getBean("cookieServiceImpl", CookieService.class);
        cookService.cooking();
    }

}
